package com.yilife.hmstr.domain;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * 检查报告问题
 * @author dede
 *
 */
@SuppressWarnings("serial")
@TableName(value="tr_problem")
public class TrProblem extends Model<TrProblem>{
	
	/**
	 * 主键
	 */
	@TableId(value="trp_id")
	private long trpId;
	
	/**
	 * 项目
	 */
	private String project;
	
	/**
	 * 建议
	 */
	private String suggest;
	
	/**
	 * 属性
	 */
	private String attribute;
	
	/**
	 * 
	 */
	@TableField(value="tp_id")
	private long tpId;

	public TrProblem() {
		super();
	}

	public TrProblem(long trpId, String project, String suggest, String attribute, long tpId) {
		super();
		this.trpId = trpId;
		this.project = project;
		this.suggest = suggest;
		this.attribute = attribute;
		this.tpId = tpId;
	}

	public long getTrpId() {
		return trpId;
	}

	public void setTrpId(long trpId) {
		this.trpId = trpId;
	}

	public String getProject() {
		return project;
	}

	public void setProject(String project) {
		this.project = project;
	}

	public String getSuggest() {
		return suggest;
	}

	public void setSuggest(String suggest) {
		this.suggest = suggest;
	}

	public String getAttribute() {
		return attribute;
	}

	public void setAttribute(String attribute) {
		this.attribute = attribute;
	}

	public long getTpId() {
		return tpId;
	}

	public void setTpId(long tpId) {
		this.tpId = tpId;
	}

	@Override
	public String toString() {
		return "TrProblem [trpId=" + trpId + ", project=" + project + ", suggest=" + suggest + ", attribute="
				+ attribute + ", tpId=" + tpId + "]";
	}

	@Override
	protected Serializable pkVal() {
		// TODO Auto-generated method stub
		return trpId;
	}

}
